package com.lwm.service;

import com.lwm.domain.ResponseResult;
import com.lwm.domain.User;

public interface LoginService {

    /**
     * 登录
     *
     * @param user 用户
     * @return {@link ResponseResult}<{@link Object}>
     */
    ResponseResult<Object> login(User user);

    /**
     * 注销
     *
     * @return {@link ResponseResult}<{@link Object}>
     */
    ResponseResult<Object> logout();

    /**
     * 获取用户信息
     *
     * @param token 令牌
     * @return {@link ResponseResult}<{@link Object}>
     */
    ResponseResult<Object> getInfo(String token);
}
